My Project
 All Files Functions Macros
Functions
math.h File Reference

Functions for mean value calculation. More...

Go to the source code of this file.

Functions

int mean_value (int *p, int size)
 Given an 'array' of integers, this function calculates the mean value. More...
 

Detailed Description

Functions for mean value calculation.

Author
Henrik Sandklef
Date
25 Nov 2015

Function Documentation

int mean_value ( int *  p,
int  size 
)

Given an 'array' of integers, this function calculates the mean value.

Parameters
int*p - 'array' with integers to calc mean from
intsize - size of 'array'
int*mean_value - a pointer to an integer where the function will store the mean value.
Returns
Error code. 0 - on success.

return 0 on success